<%@page import="service.SellerService"%>
<%@page import="entities.SellerEntity"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	//获得商家id,并依此查询商家信息
	String id = request.getParameter("id");
	SellerEntity seller = new SellerEntity();
	seller = SellerService.getSellerById(Integer.parseInt(id));
	//out.println(seller);
%>
<!DOCTYPE HTML>
<html>
<head>

<title>商家信息</title>

<style type="text/css">
* {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

a,img {
	border: 0;
}

a,a:visited {
	color: #5e5e5e;
	text-decoration: none;
}

a:hover {
	color: #4183C4;
	text-decoration: none;
}

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix {
	display: inline-table;
} /* Hides from IE-mac \*/
* html .clearfix {
	height: 1%;
}

.clearfix {
	display: block;
} /* End hide from IE-mac */
*+html .clearfix {
	min-height: 1%;
}

.clear {
	height: 0;
	overflow: hidden;
	clear: both;
	display: block;
}

/* name_card */
.name_card .W_vline {
	color: #999;
}
/* name_card name */
.name_card .name dt,.name_card .name dd,.name_card .info dt,.name_card .info dd
	{
	float: left;
	display: inline;
}
/*内容区上半部分的padding*/
.name_card .name {
	padding: 10px 5px 10px 5px;
	zoom: 1;
}

/*头像*/
.name_card .name dt img {
	height: 60px;
	width: 50px;
	display: block;
	border-radius: 2px;
	display: block;
}

/*商家名、电话、地址等*/
.name_card .name dd {
	margin: -4px 0 0 10px;
	line-height: 20px;
}

.name_card .name dd span {
	padding: 0 0 0 0;
}

.name_card .name dd p {
	width: 242px;
	font-size: 20px;
	word-wrap: break-word;
}

.name_card .name dd div {
	width: 210px
}

/*地址*/
.address {
	color: #969696;
	font-size: 13px;
}

/* 商家的一些数据 */
.name_card .userdata {
	width: 270px
}

.name_card .userdata li {
	font-size: 13px;
	color: #6B6B6B;
	float: left
}

.name_card .userdata li.W_vline {
	margin: 0 8px;
}
/* 简介等信息*/
.name_card .info {
	margin: 0 10px 8px 10px;
	line-height: 18px;
	width: 240px;
}
/*简介*/
.name_card .info dd {
	width: 300px;
	font-size: 12px;
	color: #6B6B6B;
	margin-bottom: 2px;
	word-wrap: break-word;
}

/* 链接*/
.name_card .links {
	display: inline;
	margin: 0;
	font-size: 12.5px;
	padding: 6px 20px 10px;
	overflow: hidden
}

.name_card .links p {
	float: left;
	display: inline-block;
	margin-top: 4px
}

.name_card .links p .icon {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-width: 1px;
	border-style: solid;
	border-radius: 2px;
	overflow: hidden;
	margin-right: 4px;
	margin-left: 8px;
}
</style>
</head>

<body>
	<div>
		<div class="name_card">
			<dl class="name clearfix">
				<dt>
					<a title="查看该商家商品" href="menu.jsp?sellerId=<%=seller.getId()%>"><img
						alt="<%=seller.getName()%>" src="<%=seller.getLogoURL()%>" />
					</a>
				</dt>
				<dd>
					<p>
						<a title="查看该商家商品" href="menu.jsp?sellerId=<%=seller.getId()%>"><%=seller.getName()%></a>&nbsp;<span
							style="font-size: 12px;">[电话:<%=seller.getTel()%>]</span>
					</p>
					<font class="address"><%=seller.getAddress()%></font>
					<div>
						<ul class="userdata">
							<li>店主： <span style="color:red;font-size: 12px;"><%=seller.getOwner()%></span>
							</li>
							<li class="W_vline">|</li>
							<li>送餐时间：<span style="color:red;font-size: 12px;"><%=seller.getDeliverTime()%></span>
							</li>
						</ul>
					</div>
				</dd>
			</dl>
			<dl class="info">
				<dt>简介：</dt>
				<dd>
					&nbsp;&nbsp;&nbsp;&nbsp;<%=seller.getDesc()%></dd>
			</dl>

		</div>
	</div>
</body>
</html>
